package com.cloud.utils;

import com.cloud.service.FeignSystemService;
import org.apache.commons.lang3.StringUtils;

/**
 * 获取系统配置
 *
 * @author yzj
 */
public class SysConfigUtils {

    /**
     * 根据Key获取配置信息
     *
     * @param configKey
     * @return
     */
    public static String getConfigInfo(String configKey) {
        String resultData = null;
        if (StringUtils.isNotEmpty(configKey)) {
            resultData = SpringUtils.getBean(FeignSystemService.class).getInConfig(configKey).getData();
        }
        return resultData;
    }

}
